package com.example.Opd_ISF_Android_Application.view.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.example.Opd_ISF_Android_Application.R;


/**
 * Created with IntelliJ IDEA.
 * User: Dell
 * Date: 2/04/13
 * Time: 18:14
 * To change this template use File | Settings | File Templates.
 */
public class CompareActivity extends Activity {
    private Button btnShowGraph;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);    //To change body of overridden methods use File | Settings | File Templates.
        setContentView(R.layout.compare);

        /* create extra rows
        LayoutInflater inflater = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

        TableRow rowView = (TableRow)inflater.inflate(R.layout.comparisonRow, null);
        table.addRow(rowView);
         */

        // initialise components & list
        initialiseComponents();
        addEvents();
    }

    private void initialiseComponents() {
        btnShowGraph = (Button) findViewById(R.id.btnShowGraph);

    }

    private void addEvents() {
       btnShowGraph.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View view) {
               Intent graphActivity = new Intent(getResources().getString(R.string.graphIntent));
               // add data to send to activity
             //  graphActivity.putExtra();
              // graphActivity.putExtra();
               startActivity(graphActivity);
           }
       });
    }
}
